package com.yonyou.pmclouds.plan.rmiimpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yonyou.pmclouds.ApplicationConsts;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.plan.entity.PlanProgressVO;
import com.yonyou.pmclouds.plan.mapper.PlanProgressMapper;
import com.yonyou.pmclouds.plan.rmiitf.IScheduleProgressQueryService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = ApplicationConsts.APPLICATION_VERSION, interfaceClass = IScheduleProgressQueryService.class)
public class ScheduleProgressQueryServiceImpl implements IScheduleProgressQueryService {

    @Autowired
    private PlanProgressMapper progressMapper;

    @Override
    public PlanProgressVO[] queryByPkItems(String[] pkItems) throws BusinessException {
        return progressMapper.queryByPlanIds(pkItems);
    }
}
